from odoo import models, fields


class Group(models.Model):
    _name = 'group.info'
    _description = 'The information of some groups'
    _res_name = 'title'

    name = fields.Char(
        '技术组名',
        required=True
    )

    principal = fields.Many2one(
        'res.users',
        string='技术组负责人',
        # required=True
    )

    person = fields.One2many(
        'person.info',
        'ability',
        string='技术组人员',
        ondelete='set null'
        # required=True
    )


